Pronamic\WordPress\Pay\Payments\Payment B

Total Complexity 87
Dependencies 16
Dependents 73
Total lines 902
Lines of code 355
Logical lines of code 181
Comment lines 384
Methods 39
Properties 16

Methods 39

Method Rating Maintainability Complexity Lines of code
from_json()
B
39 22 64
get_json()
B
39 15 66
get_provider_link()
S
57 4 17
add_note()
S
51 3 29
get_source_text()
S
58 2 15
get_return_url()
S
60 2 14
__construct()
S
63 2 11
add_period()
S
69 2 7
add_subscription()
S
70 2 6
get_subscription()
S
69 2 7
get_source_link()
S
64 2 10
get_source_description()
S
64 2 10
get_refunded_amount()
S
82 1 3
get_total_amount()
S
82 1 3
set_transaction_id()
S
81 1 3
set_slug()
S
81 1 3
get_slug()
S
82 1 3
get_periods()
S
82 1 3
get_email()
S
82 1 3
format_string()
S
75 1 4
get_subscriptions()
S
82 1 3
get_transaction_id()
S
82 1 3
get_edit_payment_url()
S
65 1 10
set_refunded_amount()
S
81 1 3
get_return_redirect_url()
S
70 1 6
set_expiry_date()
S
81 1 3
get_expiry_date()
S
82 1 3
save()
S
81 1 3
get_action_url()
S
82 1 3
set_total_amount()
S
81 1 3
get_pay_redirect_url()
S
65 1 10
set_failure_reason()
S
81 1 3
get_failure_reason()
S
82 1 3
set_status()
S
81 1 3
get_status_label()
S
80 1 3
get_status()
S
82 1 3
set_charged_back_amount()
S
81 1 3
get_charged_back_amount()
S
82 1 3
set_action_url()
S
81 1 3